package com.yos.sb2.event;

import org.springframework.stereotype.Component;

@Component
public class RainListener implements WeatherListener {
    @Override
    public void onWeatherEvent(WeatherEvent weatherEvent) {
        if (weatherEvent instanceof RainEvent) {
            System.out.println("hello " + weatherEvent.getWeather());
        }
    }
}
